package com.HomeWorkhsp.Chapter08.extends_.improve_;

import com.HomeWorkhsp.Chapter08.extends_.Graduate;
import com.HomeWorkhsp.Chapter08.extends_.Pupil;

/**
 * Enjoy programming!!!
 * Time: 2021/11/18 -  20:08
 */
public class Extends01 {
    public static void main(String[] args) {
        Pupil pupil = new Pupil();
        pupil.name = "银角大王";
        pupil.age = 10;
        pupil.testing();
        pupil.setScore(60);
        pupil.showInfo();

        System.out.println("=========");
        com.HomeWorkhsp.Chapter08.extends_.Graduate graduate = new Graduate();
        graduate.name = "金角大王";
        graduate.age = 22;
        graduate.testing();
        graduate.setScore(100);
        graduate.showInfo();
    }
}
